mod health;
mod version;
mod tenant;
mod product;
mod web_socket;

use warp::Filter;

pub fn init_routes() -> impl Filter<Extract=impl warp::Reply, Error=warp::Rejection> + Clone {
    let health_route = health::health_route();
    let version_route = version::version_route();
    let tenant_route = tenant::tenant_route();
    let product_route = product::product_route();
    let web_socket_route =  web_socket::websocket_route();

    health_route.or(version_route).or(tenant_route).or(product_route).or(web_socket_route)
}